﻿//-----------------------------------------------------------------------
// <copyright file="Session.cs" company="FPTSS">
//     Copyright FPTSS. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ExtSite.Classes;

namespace ExtSite
{
    public class ClsSession
    {
        private DateTime _WorkingDate;
        private User _User = new User();
        private string _TokenKey = "";
        private string _SID = "";
        public string LanguageID = "";
        public string DefaultLanguageID = "";
        public string CompanyName = "";
        public string Port = null;
        public string Locale = "en-GB";
        public int ConnectionID = 0;
        private Dictionary<string, string> _PagesPermission = new Dictionary<string, string>();
        public Dictionary<string, string> PagesPermission
        {
            get { return this._PagesPermission; }
            set { this._PagesPermission = value; }
        }

        public string SID
        {
            get { return this._SID; }
            set { this._SID = value; }
        }
        public DateTime WorkingDate
        {
            get { return this._WorkingDate; }
            set { this._WorkingDate = value; }
        }
        public User User
        {
            get { return this._User; }
            set { this._User = value; }
        }
        public string TokenKey
        {
            get { return this._TokenKey; }
            set { this._TokenKey = value; }
        }
        public ClsSession()
        {
            this._TokenKey = Guid.NewGuid().ToString();

        }
    }
}
